let routes = [
    {
        path: '/',
        redirect: '/login',
        hidden: true
    },
    {
        path: '/shopRegister',
        component: () => import("./views/ShopRegister"),
        name: '',
        hidden: true
    },
    {
        path: '/active',
        component: () => import("./views/shop/Active"),
        name: '',
        hidden: true
    },
    {
        path: '/login',
        component: () => import("./views/Login"),
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: () => import("./views/404.vue"),
        name: '',
        hidden: true
    },
    {
        path: '/',
        component: () => import('./views/Home'),
        name: 'Charts',
        iconCls: 'fa fa-bar-chart',
        leaf: true,
        children: [
            {path: '/echarts', component: () => import('./views/charts/echarts'), name: '首页'}
        ]
    }, {
        path: '/',
        component: () => import('./views/Home'),
        name: '组织机构管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            {path: '/403', component: () => import('./views/auth/403'), name: '无权限', hidden: true},
            {path: '/dept', component: () => import('./views/org/Department'), name: '部门管理'},
            {path: '/emp', component: () => import('./views/org/Employee'), name: '员工管理'}
        ]
    },
    {
        path: '/',
        component: () => import('./views/Home'),
        name: '权限管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            {path: '/permission', component: () => import('./views/auth/Permission'), name: '权限管理'},
            {path: '/role', component: () => import('./views/auth/Role'), name: '角色管理'},
            {path: '/menu', component: () => import('./views/auth/Menu'), name: '菜单管理'},
        ]
    },
    {
        path: '/',
        component: () => import('./views/Home'),
        name: '线索管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            {path: '/clue', component: () => import('./views/clue/Clue'), name: '线索管理'}
        ]
    },
    // {
    //     path: '/',
    //     component: () => import('./views/Home'),
    //     name: 'nav1',
    //     iconCls: 'el-icon-message',//图标样式class
    //     children: [
    //         {path: '/main', component: () => import('./views/Main.vue'), name: '主页', hidden: true},
    //         {path: '/table', component: () => import('./views/nav1/Table.vue'), name: 'table'},
    //         {path: '/form', component: () => import('./views/nav1/Form.vue'), name: 'form'},
    //         {path: '/user', component: () => import('./views/nav1/user.vue'), name: 'user'}
    //     ]
    // },
    {
        path: '/',
        component: () => import('./views/Home'),
        name: '店铺管理',
        iconCls: 'fa fa-id-card-o',
        children: [
            {path: '/shop', component: () => import("./views/shop/Shop"), name: "入驻商户列表"}
        ]
    },
    {
        path: '/',
        component: () => import('./views/Home'),
        name: '二手车管理',
        iconCls: 'fa fa-id-card-o',
        children: [
            {path: '/carType', component: () => import("./views/car/carType"), name: "车辆管理"},
            {path: '/car', component: () => import("./views/car/Car"), name: "二手车管理"}
        ]
    },
    // {
    //     path: '/',
    //     component: () => import('./views/Home'),
    //     name: '',
    //     iconCls: 'fa fa-address-card',
    //     leaf: true,//只有一个节点
    //     children: [
    //         {
    //             path: '/page6',
    //             component: () => import("./views/nav3/Page6.vue"),
    //             name: '导航三'
    //         }
    //     ]
    // },
    // {
    //     path: '*',
    //     hidden: true,
    //     redirect: {path: '/404'}
    // }
];

export default routes;